#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<random>
#include<string>
using namespace std;

random_device rd;
mt19937 gen(rd());

vector<int> generateRandomarray(int maxSize, int maxValue) {
	
	uniform_int_distribution<int> ds(0, maxSize);
	uniform_int_distribution<int> dv(0, maxValue);
	vector<int>  arr(ds(gen));
	for (int i = 0; i < arr.size(); ++i) {
		arr[i] = dv(gen) - dv(gen);
	}
	return arr;
}


class Solution {
public:
    int minimumDeleteSum(string s1, string s2) {
        int m = s1.size(), n = s2.size();
        vector<vector<int>> dp(m + 1, vector<int>(n + 1));
        for (int i = 1; i <= m; ++i) {
            for (int j = 1; j <= n; ++j) {
                dp[i][j] = max(dp[i - 1][j], dp[i][j - 1]);
                if (s1[i - 1] == s2[j - 1]) dp[i][j] = max(dp[i - 1][j - 1] + s1[i - 1], dp[i][j]);
            }
        }
        int sum = 0;
        for (auto c : s1)
            sum += c;
        for (auto c : s2)
            sum += c;
        return sum - dp[m][n] * 2;
    }
};

int main()
{
	vector<int> arr = generateRandomarray(10,100);
	for (int i = 0; i < arr.size(); ++i) {
		cout << arr[i] << ' ';
	}
	return 0;
}